package work.gac.userRegist;

import cn.hutool.core.date.DateUtil;
import cn.hutool.core.io.FileUtil;
import cn.hutool.json.JSONArray;

import java.io.File;
import java.nio.charset.Charset;
import java.util.Date;
import java.util.List;

public class UserRegisterInfoFInd {
    public static void main(String[] args) {
        String prefix = "C:\\work-records\\Apple\\l-gac用户注册情况导出\\";
        String out = prefix + DateUtil.format(new Date(),"yyyy-MM-dd")+".json";
        List<File> files = FileUtil.loopFiles(prefix + "原始数据\\CNY男模派样太阳码_20230110\\cny图片");

        JSONArray array = new JSONArray();
        for (File file : files) {
            array.add(file.getName().split("\\.")[0]);
        }

        FileUtil.writeString(array.toString(),out, Charset.defaultCharset());
    }
}
